<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>我的积分</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="applicable-device" content="mobile">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes, width=device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="css/style.css">
	<script src="js/jquery.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
			$.ajax({
				type: "post",
			 	url: "/personalcenter/userevents",
			    dataType: "json",
				success: function (data) {
			    	if(data.result==0){
			    		$("#userimg").attr('src',data.headimg);
			    		$("#userpoints").html(data.points);
			    		$("#userchange").html(data.changecounts);
			    		$("#events").html(data.events);
			    	}else{
			    		window.location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe643cc1b34aa8f25&redirect_uri=http%3a%2f%2fa6.189young.com%2fpersonalcenter%2fcheckuser&response_type=code&scope=snsapi_base&state=1#wechat_redirect';
			    	}
			    }
			}); 
	 	});
	</script>
</head>
<body>
    <div class="page">

        <header class="user-header">
          <a href="javascript:history.go(-1);" class="btn-back posa">返回</a>
          <div class="img-box user-photo"><img src="img/icon_index_menu07.png" alt="" id="userimg"></div>
          <div class="tc user-header-info">
            <a href="user_point.html" class="user-header-info-link"><b id="userpoints"></b><span>我的积分</span></a>
            <a href="user_goods.html" class="user-header-info-link"><b id="userchange"></b><span>我的兑换</span></a>
          </div>
        </header>
        
        <div class="top-btns">
          <div class="top-btns-wrap tc">
            <div class="top-btn dib"><a href="point_rule.html">积分规则</a></div>
            <div class="top-btn dib"><a href="point_goods.html">积分兑换</a></div>
            <div class="top-btn dib"><a href="point_events.html">积分活动</a></div>
          </div>
        </div>
        
        <div class="content-wrap">
            <div class="q-list user-point-list">
              <div class="q-header">积分明细（本页面仅显示近1个月的积分详细记录，如需查询更多信息，可联系公众号客服查询，带来不便请见谅）</div>
              <ul id="events">
                <!-- <li class="clearfix minus">
                  <div class="fl user-point-time"></div>
                  <div class="fl user-point-title"></div>
                  <div class="fr user-point-num"></div>
                </li> -->
              </ul>
            </div>
        </div>
        
    </div>

    <!--百度数据统计-->
    <script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src="https://hm.baidu.com/hm.js24866553cf6bdd25afcd437091f96447";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();</script>

</body>
</html>
















